package model;

public class DBException extends Exception{
	public static final int DB_OPEN_ERR = 1;
	public static final int DB_RESULT_NOTHING = 2;
	public static final int DB_RESULT_NOTREAD = 3;
	public static final int DB_CLOSE_ERR = 4;

	private int code;

	public DBException(String msg, int code) {
		super(msg);
		this.code = code;
	}

	public int getErrorCode() {
		return code;
	}
}
